ngl: Speed up glyph loop
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Mar 2021 00:20:50 +0000 (20:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 30 Mar 2021 04:19:28 +0000 (00:19 -0400)
commit3add99a9a84845757e76d49f9c887f5d7a074637
treebef2612519b17bd009f6376501510a884bc2c0f7
parentd4ea2e848d16f4d555a7f4457ebbd99b4241fa1c
ngl: Speed up glyph loop

Move some work out of the loop in visit_text_node.
This takes advantage of the fact that the yoffset
of most glyphs is zero, so yphase generally does
not change in a line of text.
gsk/ngl/gsknglglyphlibraryprivate.h
gsk/ngl/gsknglrenderjob.c